Skip to main content

All Questions

3votes
1answer
231views

Killing a Hydra - Overengineered

Background This question is inspired by the question: Killing a hydra, and my response therein. I will restate the problem at hand in full so that this question is fully self contained You can only ...
N3buchadnezzar's user avatar
9votes
1answer
944views

Number in words: recursive function

I would appreciate some feedback on the below code I wrote for a Project Euler problem. The answer comes out correct but I'd like feedback on the design of the function and implementation of ...
engineer.larry's user avatar
9votes
1answer
198views

Tower of Hanoi with helper function

Here is my solution to the Tower of Hanoi problem using Python ...
MrJoe's user avatar
  • 2,133
2votes
1answer
2kviews

Given a binary tree, find the maximum path sum

This is a leetcode.com problem. For this problem, a path is defined as any sequence of nodes from some starting node to any node in the tree along the parent-child connections. The path must ...
Stack crashed's user avatar

close